package com.lzx.adx.report.enums;

/**
 * 58和媒体趣头条回调类型映射
 */
public enum HhHwEnum {
    activate("0", "activate"),
    register("1", "register"),
    ply("2", "paid"),
    day1retention("6", "retain"),
    ;

    private String productCode;

    private String hwCode;


    HhHwEnum(String productCode, String hwCode) {
        this.productCode = productCode;
        this.hwCode = hwCode;

    }

    public String getProductCode() {
        return productCode;
    }

    public String getHwCode() {
        return hwCode;
    }


    public static String getHwCode(String productCode) {
        HhHwEnum[] qttWBEnums = HhHwEnum.values();
        for (HhHwEnum qttWBEnum : qttWBEnums) {
            if (qttWBEnum.getProductCode().equals(productCode)) {
                return qttWBEnum.getHwCode();
            }
        }
        return null;
    }



}
